package com.zr.dao.dispatch;

import com.zr.vo.dispatch.DispatchAbnormalRecord;
import com.zr.vo.dispatch.DispatchDelayRecord;

import java.util.Date;
import java.util.List;
/**
 * @author 杜雨萌
 * @date 2022/10/29
 * @version 2022.1
 */
public interface DispatchDelayRecordDao {
    int deleteByPrimaryKey(Integer id);

    int insert(DispatchDelayRecord record);

    int insertSelective(DispatchDelayRecord record);

    DispatchDelayRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DispatchDelayRecord record);

    int updateByPrimaryKey(DispatchDelayRecord record);

    /**
     * 查询所有的延误表
     * @param dispatchDelayRecord
     * @return
     * @author 杜雨萌
     */
    List<DispatchDelayRecord> list(DispatchDelayRecord dispatchDelayRecord);

    Integer getNumByDate(Date date);

    Integer getNumByMonth(Date date);
}